package com.innovation.chengzhangriji.ui.widget;

import android.text.Layout;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.innovation.chengzhangriji.R;

public class DiscoverCommentTextViewHolder extends DiscoverCommentViewHolder {

    private EmojiTextView mText;

    public DiscoverCommentTextViewHolder(View itemView) {
        super(itemView);
        LayoutInflater.from(itemView.getContext()).inflate(R.layout.item_comment_text, getContent());
        mText = (EmojiTextView) itemView.findViewById(R.id.txt_content);
    }

    // 设置日记的内容
    public void setDiaryText(String text) {
        mText.setText(text);
    }
}
